PagePanel.Remove Method
Removes the page specified by Index. The first page is numbered zero.
Syntax
PagePanel.Remove Index
Index
Integer
It will also remove all of the controls on the page.